package extendDemo;

import java.util.ArrayList;

public class Test2 {
    public static void main(String[] args) {
        Teacher t = new Teacher();
        t.setName("丽丽");
        t.setSkill("Java");
        t.printInfo();

        Consultant c = new Consultant();
        c.setName("小李");
        c.setNum(125);
        c.printInfo();

        System.out.println("============================");

        Z z = new Z();
        z.print2();
        Z z2 = new Z("琪琪");
    }
}
